package com.qf.android.huihui.model;

import com.qf.android.huihui.bean.ShoppingBean;
import com.qf.android.huihui.bean.show.shoppingbottom.Hot;
import com.qf.android.huihui.bean.show.shoppingbottom.HotBusiness;
import com.qf.android.huihui.bean.show.shoppingbottom.ShoppingBottomBean;
import com.qf.android.huihui.model.impl.IShopping;
import com.qf.android.huihui.utils.retrofit.RHttpClient;

import rx.Observable;

/**
 * Created by lx on 2017/1/6.
 */

public class ShoppingModel implements IShopping {
    @Override
    public void loadData() {

    }
    @Override
    public Observable<ShoppingBean> loadInfo() {
        return RHttpClient.getService().getShopping_first();
    }

    @Override
    public Observable<HotBusiness> loadHotBusiness() {
        return RHttpClient.getService().getHotAndBusiness();
    }

    @Override
    public Observable<Hot> loadHot() {
        return RHttpClient.getService().getHot();
    }

    @Override
    public Observable<ShoppingBottomBean> loadShoppingBottomBean() {
        return RHttpClient.getService().getShoppingBottomBean();
    }


}
